package com.tom.demo.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
@ApiModel(value = "目录和菜单的下拉选项")
public class MenuOptionsVo {

    @ApiModelProperty("菜单id")
    private String menuId;

    @ApiModelProperty("菜单名称")
    private String menuName;

    @ApiModelProperty("子选项")
    //空数组[]不要渲染回前端
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<MenuOptionsVo> children;
}
